home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 January / macformat-020.iso / Shareware City / Developers / apps.to.go / DTS.Draw / App.protos.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-05-05  |  2.2 KB  |  100 lines  |  [TEXT/MPS ]

  1. #ifndef __APPPROTOS__
  2. #define __APPPROTOS__
  3.  
  4.  
  5. #ifndef __DLPROTOS__
  6. #include "DTS.Lib.protos.h"
  7. #endif
  8.  
  9. #ifndef __DRAG__
  10. #include <Drag.h>
  11. #endif
  12.  
  13. /* NOTE:  These prototypes are in a single file as they are the standard functions
  14. **        functions for this application shell.  You may wish to have separate
  15. **        files for the prototypes of functions you add to the shell.  They are all
  16. **        here in a single file for simplicity. */
  17.  
  18.  
  19.  
  20. /************** Clipboard.c **************/
  21.  
  22. OSErr            GetClipboardWindow(WindowPtr *clipWind);
  23. OSErr            ClipboardInitDocument(FileRecHndl frHndl);
  24. void            DoClipboard(FileRecHndl frHndl, short menuItem);
  25.  
  26.  
  27.  
  28. /************** Color.c **************/
  29.  
  30. OSErr            ChangeColor(FileRecHndl frHndl, WindowPtr window, short part);
  31.  
  32.  
  33.  
  34. /************** DoEvent.c **************/
  35.  
  36. void            DoEvent(EventRecord *event);
  37.  
  38.  
  39.  
  40. /************** Drag.c **************/
  41.  
  42. Boolean            DragDropAvailable(void);
  43. OSErr            ManageDragHandlers(WindowPtr window, Boolean install);
  44. OSErr            DoDrag(FileRecHndl frHndl, EventRecord *event);
  45.  
  46.  
  47.  
  48. /************** EventLoop.c **************/
  49.  
  50. void            EventLoop(void);
  51.  
  52.  
  53.  
  54. /************** IdleTasks.c **************/
  55.  
  56. void            DoIdleTasks(EventRecord *event);
  57.  
  58.  
  59.  
  60. /************** Menu.c **************/
  61.  
  62. Boolean            DoAdjustFileMenu(WindowPtr window);
  63. Boolean            DoAdjustEditMenu(WindowPtr window);
  64. Boolean            DoAdjustArrangeMenu(WindowPtr window);
  65. Boolean            DoAdjustOtherMenu(WindowPtr window);
  66.  
  67.  
  68.  
  69. /************** PenSizeDialog.c **************/
  70.  
  71. OSErr            PENSInitContent(FileRecHndl frHndl, WindowPtr window);
  72. OSErr            PENSFreeWindow(FileRecHndl frHndl, WindowPtr window);
  73.  
  74.  
  75.  
  76. /************** ToolPalette.c **************/
  77.  
  78. OSErr            ToolInitDocument(FileRecHndl frHndl);
  79. void            SetPaletteTool(short tool);
  80. short            GetTool(void);
  81. Boolean            GetToolPersistence(void);
  82.  
  83.  
  84.  
  85. /************** Window.c **************/
  86.  
  87. OSErr            DuplicateDocument(FileRecHndl oldFrHndl, FileRecHndl *newFrHndl);
  88. void            DoDelete(FileRecHndl frHndl);
  89. void            DoArrange(FileRecHndl frHndl, short menuItem);
  90. Rect            GetSelectedArea(TreeObjHndl root);
  91. Rect            GetDataArea(TreeObjHndl root);
  92. void            SetDataArea(TreeObjHndl root, short h, short v);
  93. void            DoGroup(FileRecHndl frHndl);
  94. void            DoUngroup(FileRecHndl frHndl);
  95. void            NewDocumentUndo(FileRecHndl frHndl);
  96.  
  97.  
  98.  
  99. #endif
  100.